/*! * v3.0 Copyright 2016-2018 http://v.shoutu.cn * Email 726662013@qq.com */var playerhigh="1";var lazyswitch="1";var playcolumn="8";var qrcode1="1";var qrcode2="1";var copyshort="0" var baidushare="0";var stui={'browser':{url:document.URL,domain:document.domain,title:document.title,language:(navigator.browserLanguage||navigator.language).toLowerCase(),canvas:function(){return!!document.createElement("canvas").getContext}(),useragent:function(){var a=navigator.userAgent;return{mobile:!!a.match(/AppleWebKit.*Mobile.*/),ios:!!a.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:-1');$(".close-popup").click(function(){$popblock.removeClass("popup-visible");$(".mask").remove();$("body").removeClass("modal-open");});$(".mask").click(function(){$popblock.removeClass("popup-visible");$(this).remove();$("body").removeClass("modal-open");});})},'slide':function(){$(".type-slide").each(function(a){$index=$(this).find('.active').index()*1;if($index>3){$index=$index-3;}else{$index=0;} $(this).flickity({cellAlign:'left',freeScroll:true,contain:true,prevNextButtons:false,pageDots:false,initialIndex:$index});});},'mshare':function(){$(".open-share").click(function(){stui.browser.useragent.weixin?$("body").append('
'):$("body").append('
');$(".mobile-share").click(function(){$(".mobile-share").remove();$("body").removeClass("modal-open");});});}},'images':{'lazyload':function(){if(lazyswitch==1){$(".lazyload").lazyload({effect:"fadeIn",threshold:200,failurelimit:15,skip_invisible:false});}else{$(".lazyload").each(function(){var original=$(this).attr("src");$(this).css("background-image","url("+original+")");$(this).attr("src","");if($(this).attr("src")!=undefined){$(this).attr("src",original);}});}},'carousel':function(){$('.carousel_default').flickity({cellAlign:'left',contain:true,wrapAround:true,autoPlay:true,prevNextButtons:false});$('.carousel_wide').flickity({cellAlign:'center',contain:true,wrapAround:true,autoPlay:true});$('.carousel_center').flickity({cellAlign:'center',contain:true,wrapAround:true,autoPlay:true,prevNextButtons:false});$('.carousel_right').flickity({cellAlign:'left',wrapAround:true,contain:true,pageDots:false});},'qrcode':function(){if(qrcode1==1){if($("#qrcode").length){var qrcode=new QRCode('qrcode',{text:stui.browser.url,width:150,height:150,colorDark:'#000000',colorLight:'#ffffff',correctLevel:QRCode.CorrectLevel.H});$("#qrcode img").attr("class","img-responsive");}}else{if($("#qrcode").length){$("#qrcode").append("");}} if(qrcode2==1){if($("#qrcode2").length){var qrcode=new QRCode('qrcode2',{text:stui.browser.url,width:160,height:160,colorDark:'#000000',colorLight:'#ffffff',correctLevel:QRCode.CorrectLevel.H});$("#qrcode2 img").attr("class","img-responsive").css({"padding":"10px","background-color":"#fff"});}}else{if($("#qrcode2").length){$("#qrcode2").append("");}}}},'common':{'bootstrap':function(){$('a[data-toggle="tab"]').on("shown.bs.tab",function(a){var b=$(a.target).text();$(a.relatedTarget).text();$("span.active-tab").html(b);});},'headroom':function(){if($("#header-top").length){var header=document.querySelector("#header-top");var headroom=new Headroom(header,{tolerance:5,offset:205,classes:{initial:"top-fixed",pinned:"top-fixed-up",unpinned:"top-fixed-down"}});headroom.init();}},'history':function(){if($("#stui_history").length){if($.cookie("recente")){var json=eval("("+$.cookie("recente")+")");var list="";for(i=0;i"+json[i].vod_part+""+json[i].vod_name+"";} $("#stui_history").append(list);} else $("#stui_history").append("

您还没有看过影片哦

");$(".historyclean").on("click",function(){$.cookie("recente",null,{expires:-1,path:'/'});});}},'collapse':function(){if($(".detail").length){$(".detail").find("a.detail-more").on("click",function(){$(this).parent().find(".detail-sketch").addClass("hide");$(this).parent().find(".detail-content").css("display","");$(this).remove();});}},'scrolltop':function(){var a=$(window);$scrollTopLink=$("a.backtop");a.scroll(function(){500<$(this).scrollTop()?$scrollTopLink.css("display",""):$scrollTopLink.css("display","none");});$scrollTopLink.on("click",function(){$("html, body").animate({scrollTop:0},400);return!1});},'copylink':function(){if(copyshort==1){if($(".copylink").length){$.ajax({type:'GET',url:'https://api.weibo.com/2/short_url/shorten.json?source=2849184197&url_long='+encodeURIComponent(stui.browser.url),dataType:'JSONP',success:function(r){url_short=r.data.urls[0].url_short;var clipboard=new Clipboard('.copylink',{text:function(){return url_short;}});clipboard.on('success',function(e){alert("地址复制成功,赶快分享给小伙伴吧!");});}});}}else{if($(".copylink").length){var url_short=stui.browser.url;var clipboard=new Clipboard('.copylink',{text:function(){return url_short;}});clipboard.on('success',function(e){alert("地址复制成功,赶快分享给小伙伴吧!");});}}},'share':function(){if(baidushare!=0){$(".share").html('');window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"24"},"share":{}};with(document)0[(getElementsByTagName("head")[0]||body).appendChild(createElement('script')).src=''+baidushare+'?cdnversion='+~(-new Date()/36e5)];}}}};if(window.console&&window.console.log){console.log('\u9996\u6d82\u7f51\uff08www.leidada.cn\uff09\u539f\u521b\u4f5c\u54c1');console.log('\u4f5c\u8005\uff1a\u5c0f\u4e8c\u54e5\uff0cQQ\uff1a8315401');console.log("%c\u539f\u521b\u4f5c\u54c1\u8bf7\u5c0a\u91cd\u4f5c\u8005\u52b3\u52a8\u6210\u679c\uff0c\u52ff\u5012\u5356\u5206\u4eab\uff0c\u8c22\u8c22\uff01","color:red");} $(document).ready(function(){if(stui.browser.useragent.mobile){stui.mobile.slide();stui.mobile.popup();stui.mobile.mshare();} stui.images.lazyload();stui.images.carousel();stui.images.qrcode();stui.common.bootstrap();stui.common.headroom();stui.common.history();stui.common.collapse();stui.common.scrolltop();stui.common.copylink();stui.common.share();});